package com.domain;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @auther linke
 * @create 2021-10-28 14:05
 */
public class OrderItem implements Serializable {
    private int id;
    private int orderid;
    private int goodsid;
    private int nums;
    private BigDecimal price;

    public OrderItem() {
    }

    public OrderItem(int id, int orderid, int goodsid, int nums, BigDecimal price) {
        this.id = id;
        this.orderid = orderid;
        this.goodsid = goodsid;
        this.nums = nums;
        this.price = price;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getOrderid() {
        return orderid;
    }

    public void setOrderid(int orderid) {
        this.orderid = orderid;
    }

    public int getGoodsid() {
        return goodsid;
    }

    public void setGoodsid(int goodsid) {
        this.goodsid = goodsid;
    }

    public int getNums() {
        return nums;
    }

    public void setNums(int nums) {
        this.nums = nums;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "OrderItem{" +
                "id=" + id +
                ", orderid=" + orderid +
                ", goodsid=" + goodsid +
                ", nums=" + nums +
                ", price=" + price +
                '}';
    }
}
